package DuoTai;

import javax.swing.*;

public class MyJFrame extends JFrame {
    public MyJFrame(){
        this.setLayout(null);

        new MyButton("确定",50,50,this);


        JPanel jp = new JPanel();
        jp.setBounds(50,100,300,200);
        this.add(jp);

        jp.setLayout(null);
        new MyButton("修改",50,150,jp);


        this.setSize(600,700);
        this.setVisible(true);
        this.setDefaultCloseOperation(3);
        this.setLocationRelativeTo(null);
    }


    public static void main(String[] args) {
        new MyJFrame();
    }


}
